Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove global toFree list from Python interop module #26493

Merged
merged 8 commits into from
Jan 14, 2025

Conversation

jabraham17
Copy link
Member

@jabraham17 jabraham17 commented Jan 8, 2025

Removes the global toFree list from the Python interop module, which was a workaround for mishandling Python decrefs.

Resolves future work from #26353

  • Tested start_test test/library/packages/Python

[Reviewed by @DanilaFe]

Copy link
Contributor

@DanilaFe DanilaFe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's difficult to fully verify the decref discipline by reading a diff as I am, but assuming all your memleaks tests pass and you can invoke that dreaded NumPy tensor fn, I think this is good to go.

modules/packages/Python.chpl Outdated Show resolved Hide resolved
modules/packages/Python.chpl Outdated Show resolved Hide resolved
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
Signed-off-by: Jade Abraham <[email protected]>
@jabraham17 jabraham17 merged commit 8dd68e5 into chapel-lang:main Jan 14, 2025
8 checks passed
@jabraham17 jabraham17 deleted the remove-toFree branch January 14, 2025 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants